/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model.Animals.BodyPart;

import Model.Animals.Animal;
import Model.Animals.Behaviours.*;

/**
 *
 * @author Acay13
 */
public class Leg extends MutantAnimal {

    public Leg(Animal animal) {
        super(animal);
        this.addPerformable(new PerformAroundWalk());
        this.setWalkable(new WalkWithLegs());
    }

    @Override
    public String getDescription() {
        return animal.getDescription() + ", with extra legs";
    }

    @Override
    public double calCost() {
        return animal.calCost() * 1.3;
    }
}
